package cn.edu.dz;

public class TestDrive {
    public static void main(String[] args) {
        Teacher t1=new Teacher();
        t1.name="袁老师";
        t1.age=23;
        t1.sex=true;
        t1.sayHi();
        //使用全参
        Teacher t2 =new Teacher("",28,false);
        //调用方法
        t2.sayHi();
        Teacher t3=new Teacher();
        String strname=t3.name="大侠";
        t3.sayHi(strname);
        t2.sayHi();//同一个人打了三次招呼
        t2.sayHi();
        t2.sayHi();

        new Teacher("",24,true).sayHi();//三个不同的老师到了一次招呼
        new Teacher("",24,true).sayHi();
        new Teacher("",24,true).sayHi();
    }
}
